let v = new Vue({
    el: '.main-content',
    data: {
        qua: {}
    },
    methods: {
        show: function (id) {
            this.qua = {};
            axios({
                url: `qualification/selectOne/${id}`
            }).then(rs => {
                this.qua = rs.data.obj
            }).catch(error => {
                layer.msg(error)
            })
        },
        check: function (check) {
            this.qua.check=check;
            axios({
                url: `qualification/check`,
                method:'post',
                data: this.qua
            }).then(rs => {
                    let index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                    parent.layer.message = rs.data.obj
            }).catch(error=>{
                // layer.msg(error.message)
            })
        }
        },
        created: function () {
            this.show(parent.layer.id)
        }
    });